package cn.zjutleo.village_server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author : Qin Zhenghan
 * @date : Created in 2021/9/25
 * @description: 房屋预约DTO
 */
@Data
public class HouseRentOrderDto {

    /**
     * 预约房屋id(外键)
     */
    @ApiModelProperty(value="预约房屋id(外键)")
    private Integer rentId;

    /**
     * 房东id(外键)
     */
    @ApiModelProperty(value="房东id(外键)")
    private Integer hostId;

    /**
     * 预约时间
     */
    @ApiModelProperty(value="预约时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderTime;
}
